const { defineConfig } = require('@vue/cli-service');
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    proxy:{  //dev-api,prod-api    /api
      [process.env.VUE_APP_BASE_API]:{
        target:"http://localhost:9998/demo9_war_exploded",
        changeOrigin:true,
        ws:true,
        pathRewrite:{
          ['^' + process.env.VUE_APP_BASE_API]:""
        }
      }
    }
   },

  lintOnSave: false // 禁用保存时的lint检查
});